﻿#include <iostream>
#include <string>
#include <Windows.h>

using namespace std;

int main()
{
    setlocale(LC_ALL, "rus");
    SetConsoleCP(1251);
    SetConsoleOutputCP(1251);
    string line, word = "";
    getline(cin, line); 
    line += " ";
    int wordsCount = 0;
    bool isLatin = false;
    for (char ch : line)
    {
        if (ch == ' ') {
            wordsCount++;
            cout << word << "  Букв: " << word.length() << " " << isLatin << endl;
           
            word.clear();
            isLatin = false;
        }
        else {
            word += ch;
            if (ch >= 'a' && ch <= 'z') isLatin = true;
        }
    }
    cout << "Слов: " << wordsCount;
}

